QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network

CONFIG += c++11

CONFIG += debug

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
MOC_DIR = temp/moc
OBJECTS_DIR = temp/obj
UI_DIR = temp/ui
RCC_DIR = temp/rcc
DESTDIR = bin

unix:DEFINES += POSIX
unix:DEFINES+=RUN_IN_BOARD
unix:DEFINES+=M1515
unix:DEFINES+=TFS3536

contains(DEFINES, M1515){
message(Current dev: M1515)
include($$PWD/M1515/M1515.pri)
}
contains(DEFINES, RUN_IN_BOARD){
message(Current environment: RUN_IN_BOARD)
include($$PWD/DataCom/DataCom.pri)
}
contains(DEFINES, TFS3536){
message(Current dev: TFS3536)
include($$PWD/TFS3536/TFS3536.pri)
}
SOURCES += \
    ATC/dashboard2.cpp \
    ATC/numberkeyboarddialog.cpp \
    ATC/scalewidget.cpp \
    ATC/signalmainpage.cpp \
    ATC/signalpopmenu.cpp \
    CCTV/mlabel.cpp \
    CCTV/pismonitor.cpp \
    LocalTest/testwidget.cpp \
    TCMS/Events/pagecurrentevents.cpp \
    TCMS/Events/pageeventsidenavi.cpp \
    TCMS/Events/pagehisevents.cpp \
    TCMS/HVAC/pagehvac.cpp \
    TCMS/Maintenance/aquam8212.cpp \
    TCMS/Maintenance/aquam8628.cpp \
    TCMS/Maintenance/numberkeyboard.cpp \
    TCMS/Maintenance/numberkeyboarddot.cpp \
    TCMS/Maintenance/pageaccumlations.cpp \
    TCMS/Maintenance/pagecleanbrake.cpp \
    TCMS/Maintenance/pagedoorparameters.cpp \
    TCMS/Maintenance/pagehardwarestat.cpp \
    TCMS/Maintenance/pageinterface.cpp \
    TCMS/Maintenance/pagekeycbstat.cpp \
    TCMS/Maintenance/pagelcuboardswitch.cpp \
    TCMS/Maintenance/pagelogin.cpp \
    TCMS/Maintenance/pagemaintbattery.cpp \
    TCMS/Maintenance/pagemaintmenu.cpp \
    TCMS/Maintenance/pagemaintnetwork.cpp \
    TCMS/Maintenance/pagemannualtest.cpp \
    TCMS/Maintenance/pagenetwork.cpp \
    TCMS/Maintenance/pageothertests.cpp \
    TCMS/Maintenance/pagepasswordset.cpp \
    TCMS/Maintenance/pagepisbreakertest.cpp \
    TCMS/Maintenance/pagespeedtest.cpp \
    TCMS/Maintenance/pageswitch.cpp \
    TCMS/Maintenance/pagetimeset.cpp \
    TCMS/Maintenance/pagetrainnumset.cpp \
    TCMS/Maintenance/pageversion.cpp \
    TCMS/Maintenance/pagewheelset.cpp \
    TCMS/Maintenance/slimnumkeyboard.cpp \
    TCMS/Maintenance/switch.cpp \
    TCMS/Operation/pagebypass.cpp \
    TCMS/Operation/pageebtrigreason.cpp \
    TCMS/Operation/pagehelpoperation.cpp \
    TCMS/Operation/pageoperation.cpp \
    TCMS/Operation/pageselftest.cpp \
    TCMS/Operation/pagespdlmtreason.cpp \
    TCMS/Operation/pagetractionblock.cpp \
    TCMS/Operation/tbfwidget.cpp \
    TCMS/Operation/train.cpp \
    TCMS/PISSetting/pageembroadcast.cpp \
    TCMS/PISSetting/pagepismodesetting.cpp \
    TCMS/PISSetting/pagepissidenavi.cpp \
    TCMS/PISSetting/pagepisskipstationselect.cpp \
    TCMS/PISSetting/pagepisstationselect.cpp \
    TCMS/PISSetting/pagesetvolume.cpp \
    TCMS/Settings/pagelightsetting.cpp \
    TCMS/Settings/pagerestpcesiv.cpp \
    TCMS/Settings/pagesettingsidenavi.cpp \
    TCMS/Vehicle/pageaux.cpp \
    TCMS/Vehicle/pagebattery.cpp \
    TCMS/Vehicle/pagebrake.cpp \
    TCMS/Vehicle/pagefire.cpp \
    TCMS/Vehicle/pagepecu.cpp \
    TCMS/Vehicle/pagetraction.cpp \
    TCMS/Vehicle/pagevehiclesidenavi.cpp \
    globalconfig.cpp \
    main.cpp \
    mainwindow.cpp \
    minitrain.cpp \
    navigation.cpp \
    popupdialog.cpp \
    toptitle.cpp

HEADERS += \
    ATC/dashboard2.h \
    ATC/numberkeyboarddialog.h \
    ATC/scalewidget.h \
    ATC/signalmainpage.h \
    ATC/signalpopmenu.h \
    CCTV/mlabel.h \
    CCTV/pismonitor.h \
    LocalTest/testwidget.h \
    TCMS/Events/pagecurrentevents.h \
    TCMS/Events/pageeventsidenavi.h \
    TCMS/Events/pagehisevents.h \
    TCMS/HVAC/pagehvac.h \
    TCMS/Maintenance/aquam8212.h \
    TCMS/Maintenance/aquam8628.h \
    TCMS/Maintenance/numberkeyboard.h \
    TCMS/Maintenance/numberkeyboarddot.h \
    TCMS/Maintenance/pageaccumlations.h \
    TCMS/Maintenance/pagecleanbrake.h \
    TCMS/Maintenance/pagedoorparameters.h \
    TCMS/Maintenance/pagehardwarestat.h \
    TCMS/Maintenance/pageinterface.h \
    TCMS/Maintenance/pagekeycbstat.h \
    TCMS/Maintenance/pagelcuboardswitch.h \
    TCMS/Maintenance/pagelogin.h \
    TCMS/Maintenance/pagemaintbattery.h \
    TCMS/Maintenance/pagemaintmenu.h \
    TCMS/Maintenance/pagemaintnetwork.h \
    TCMS/Maintenance/pagemannualtest.h \
    TCMS/Maintenance/pagenetwork.h \
    TCMS/Maintenance/pageothertests.h \
    TCMS/Maintenance/pagepasswordset.h \
    TCMS/Maintenance/pagepisbreakertest.h \
    TCMS/Maintenance/pagespeedtest.h \
    TCMS/Maintenance/pageswitch.h \
    TCMS/Maintenance/pagetimeset.h \
    TCMS/Maintenance/pagetrainnumset.h \
    TCMS/Maintenance/pageversion.h \
    TCMS/Maintenance/pagewheelset.h \
    TCMS/Maintenance/slimnumkeyboard.h \
    TCMS/Maintenance/switch.h \
    TCMS/Operation/pagebypass.h \
    TCMS/Operation/pageebtrigreason.h \
    TCMS/Operation/pagehelpoperation.h \
    TCMS/Operation/pageoperation.h \
    TCMS/Operation/pageselftest.h \
    TCMS/Operation/pagespdlmtreason.h \
    TCMS/Operation/pagetractionblock.h \
    TCMS/Operation/tbfwidget.h \
    TCMS/Operation/train.h \
    TCMS/PISSetting/pageembroadcast.h \
    TCMS/PISSetting/pagepismodesetting.h \
    TCMS/PISSetting/pagepissidenavi.h \
    TCMS/PISSetting/pagepisskipstationselect.h \
    TCMS/PISSetting/pagepisstationselect.h \
    TCMS/PISSetting/pagesetvolume.h \
    TCMS/Settings/pagelightsetting.h \
    TCMS/Settings/pagerestpcesiv.h \
    TCMS/Settings/pagesettingsidenavi.h \
    TCMS/Vehicle/pageaux.h \
    TCMS/Vehicle/pagebattery.h \
    TCMS/Vehicle/pagebrake.h \
    TCMS/Vehicle/pagefire.h \
    TCMS/Vehicle/pagepecu.h \
    TCMS/Vehicle/pagetraction.h \
    TCMS/Vehicle/pagevehiclesidenavi.h \
    global_def.h \
    globalconfig.h \
    mainwindow.h \
    minitrain.h \
    navigation.h \
    popupdialog.h \
    toptitle.h \
    zlog/zlog.h

FORMS += \
    ATC/numberkeyboarddialog.ui \
    ATC/scalewidget.ui \
    ATC/signalmainpage.ui \
    ATC/signalpopmenu.ui \
    CCTV/pismonitor.ui \
    LocalTest/testwidget.ui \
    TCMS/Events/pagecurrentevents.ui \
    TCMS/Events/pageeventsidenavi.ui \
    TCMS/Events/pagehisevents.ui \
    TCMS/HVAC/pagehvac.ui \
    TCMS/Maintenance/numberkeyboard.ui \
    TCMS/Maintenance/numberkeyboarddot.ui \
    TCMS/Maintenance/pageaccumlations.ui \
    TCMS/Maintenance/pagecleanbrake.ui \
    TCMS/Maintenance/pagedoorparameters.ui \
    TCMS/Maintenance/pagehardwarestat.ui \
    TCMS/Maintenance/pageinterface.ui \
    TCMS/Maintenance/pagekeycbstat.ui \
    TCMS/Maintenance/pagelcuboardswitch.ui \
    TCMS/Maintenance/pagelogin.ui \
    TCMS/Maintenance/pagemaintbattery.ui \
    TCMS/Maintenance/pagemaintmenu.ui \
    TCMS/Maintenance/pagemaintnetwork.ui \
    TCMS/Maintenance/pagemannualtest.ui \
    TCMS/Maintenance/pagenetwork.ui \
    TCMS/Maintenance/pageothertests.ui \
    TCMS/Maintenance/pagepasswordset.ui \
    TCMS/Maintenance/pagepisbreakertest.ui \
    TCMS/Maintenance/pagespeedtest.ui \
    TCMS/Maintenance/pageswitch.ui \
    TCMS/Maintenance/pagetimeset.ui \
    TCMS/Maintenance/pagetrainnumset.ui \
    TCMS/Maintenance/pageversion.ui \
    TCMS/Maintenance/pagewheelset.ui \
    TCMS/Maintenance/slimnumkeyboard.ui \
    TCMS/Operation/pagebypass.ui \
    TCMS/Operation/pageebtrigreason.ui \
    TCMS/Operation/pagehelpoperation.ui \
    TCMS/Operation/pageoperation.ui \
    TCMS/Operation/pageselftest.ui \
    TCMS/Operation/pagespdlmtreason.ui \
    TCMS/Operation/pagetractionblock.ui \
    TCMS/Operation/tbfwidget.ui \
    TCMS/Operation/train.ui \
    TCMS/PISSetting/pageembroadcast.ui \
    TCMS/PISSetting/pagepismodesetting.ui \
    TCMS/PISSetting/pagepissidenavi.ui \
    TCMS/PISSetting/pagepisskipstationselect.ui \
    TCMS/PISSetting/pagepisstationselect.ui \
    TCMS/PISSetting/pagesetvolume.ui \
    TCMS/Settings/pagelightsetting.ui \
    TCMS/Settings/pagerestpcesiv.ui \
    TCMS/Settings/pagesettingsidenavi.ui \
    TCMS/Vehicle/pageaux.ui \
    TCMS/Vehicle/pagebattery.ui \
    TCMS/Vehicle/pagebrake.ui \
    TCMS/Vehicle/pagefire.ui \
    TCMS/Vehicle/pagepecu.ui \
    TCMS/Vehicle/pagetraction.ui \
    TCMS/Vehicle/pagevehiclesidenavi.ui \
    mainwindow.ui \
    minitrain.ui \
    navigation.ui \
    popupdialog.ui \
    toptitle.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    images.qrc

unix:!macx: LIBS += -L$$PWD/zlog/ -lzlog

INCLUDEPATH += $$PWD/zlog
DEPENDPATH += $$PWD/zlog
